package Json;

import java.util.List;

/**
 * @Description 学生
 * @Author zhongzihao
 * @Date 2021/8/4 9:59 上午
 */

public class Student {
    private List<Book> books;
    private Teacher teacher;

    public Student() {
    }

    public Student(List<Book> books, Teacher teacher) {
        this.books = books;
        this.teacher = teacher;
    }

    public List<Book> getBooks() {
        return books;
    }

    public void setBooks(List<Book> books) {
        this.books = books;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "Student{" +
                "books=" + books +
                ", teacher=" + teacher +
                '}';
    }
}
